package com.jvm123.blog.dao;

import com.jvm123.blog.entity.CollectPostRelationship;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author yawn http://jvm123.com
 * 2019/10/24 13:49
 */
public interface CollectPostRelationshipRepos extends CrudRepository<CollectPostRelationship, Long> {

    List<CollectPostRelationship> findByCollectIdOrderByPostOrder(long collectId);

    CollectPostRelationship findFirstByCollectIdAndPostId(long collectId, long postId);
}
